package com.auth.pojo;

import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2017/7/21 0021.
 */

public class User {
    private String id;
    private String userName;
    private String passWord;
    private String email;
    private Date lastPassWordResetDate;
    private List<String> roles;

    public User(String userName, String passWord, String email, Date lastPassWordResetDate, List<String> roles) {
        this.userName = userName;
        this.passWord = passWord;
        this.email = email;
        this.lastPassWordResetDate = lastPassWordResetDate;
        this.roles = roles;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getLastPassWordResetDate() {
        return lastPassWordResetDate;
    }

    public void setLastPassWordResetDate(Date lastPassWordResetDate) {
        this.lastPassWordResetDate = lastPassWordResetDate;
    }

    public List<String> getRoles() {
        return roles;
    }

    public void setRoles(List<String> roles) {
        this.roles = roles;
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", userName='" + userName + '\'' +
                ", passWord='" + passWord + '\'' +
                ", email='" + email + '\'' +
                ", lastPassWordResetDate=" + lastPassWordResetDate +
                ", roles=" + roles +
                '}';
    }
}
